<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			// 定义一个函数
			function test(){
				alert('hello!');
			}
		</script>
	</head>
	<body>
		<h1>事件绑定</h1>
		<input type="button" value="点击我" onclick="test()"/>
	</body>
</html>
